package com.ziyun.pop.modules.userPaymentBill.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.userPaymentBill.dao.ErpUserPaymentBillDao;
import com.ziyun.pop.modules.userPaymentBill.entity.UserPaymentBillEntity;
import com.ziyun.pop.modules.userPaymentBill.service.UserPaymentBillService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("userPaymentBillService")
public class UserPaymentBillServiceImpl extends ServiceImpl<ErpUserPaymentBillDao, UserPaymentBillEntity> implements UserPaymentBillService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UserPaymentBillEntity> page = (Page<UserPaymentBillEntity>) this.page(
                new Query<UserPaymentBillEntity>(params).getPage(),
                new QueryWrapper<UserPaymentBillEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public String getOrderByBillId(String paymentId) {
        return this.baseMapper.getOrderByBillId(paymentId);
    }

}
